package com.ai.service.cms.sensitiveword;

import java.util.Set;


public interface SensitiveWordService {
    /**
     * 是否包含敏感词
     * 
     * @author zhoukai5
     * @param txt
     * @param matchType
     *
     */

    public boolean isContaintSensitiveWord(String txt, int matchType);

    /**
     * 获取敏感词集合（已去重）
     * 
     * @author zhoukai5
     * @param txt
     * @param matchType
     *
     */
    public Set<String> getSensitiveWord(String txt, int matchType);

    /**
     * 用特定字符替换敏感词
     * 
     * @author zhoukai5
     * @param txt
     * @param matchType
     * @param replaceChar
     */
    public String replaceSensitiveWord(String txt, int matchType, String replaceChar);

}
